#include<iostream>
#include<string>
using namespace std;
int cnt = 0;
int main()
{
    int n, m;
    cin >> n >> m;
    string s;
    bool flag = false;
    for (int i = 1; i <= n; i++)
    {
        getline(cin, s);
        cin >> ws;
        
            if (s.find("easy") != -1 || s.find("qiandao") != -1)
            {
                // cout << s.find("Easy") << " " << s.find("easy") << " " << s.find("qiandao") << endl;
                cnt++;
            }
            // cout << i << endl;
            if (cnt == m + 1)
            {
                flag = true;
                cout << s << endl;
            }
            
        
    }

    if (!flag) cout << "Wo AK le" << endl;
    return 0;
}